#ifndef SERVO_H
#define SERVO_H
typedef struct servo
{
    int (*GetInfo)(struct servo* servo);
    int (*Go_with_distance)(struct servo* servo, float distance);
    int (*Go_with_velocity)(struct servo* servo, float velocity);
    int (*Go_with_torque)(struct servo* servo, float torque);
    float torque;
    float velocity;
    float position;

    void *instance;
    unsigned int flags;
}servo_t;
#endif